package com.wcity.manage.common.vo.community.social;

import com.wcity.manage.common.utils.StringUtil;

import java.util.Date;

/**
 * 社工
 * Created by hgg on 2016/12/14.
 */
public class SocialInfoVo {

    private Integer id;

    /**
     * 社工用户ID
     */
    private Integer userId;

    /**
     * 小区ID
     */
    private Integer blockId;

    /**
     * 意向
     */
    private String intention;

    /**
     * 展示意向
     */
    private String showIntention;

    /**
     * 状态（0待处理 1已处理）
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 处理时间
     */
    private Date dealTime;

    /**
     * 小区管理员用户ID
     */
    private Integer communityUserId;

    /**
     * 小区名称
     */
    private String blockName;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 状态文字 显示
     */
    private String statusStr;

    /**
     * 用户头像
     */
    private String icon;

    /**
     * 用户手机号码
     */
    private String userMobile;

    public SocialInfoVo(Integer id, Integer userId, Integer blockId, String intention, Integer status, String remark, Date createTime, Date updateTime, Date dealTime, Integer communityUserId) {
        this.id = id;
        this.userId = userId;
        this.blockId = blockId;
        this.intention = intention;
        this.status = status;
        this.remark = remark;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.dealTime = dealTime;
        this.communityUserId = communityUserId;
    }

    public SocialInfoVo() {
    }

    public void setStatusStr(String statusStr) {
        this.statusStr = statusStr;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getBlockId() {
        return blockId;
    }

    public void setBlockId(Integer blockId) {
        this.blockId = blockId;
    }

    public String getIntention() {
        return intention;
    }

    public void setIntention(String intention) {
        this.intention = intention;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getDealTime() {
        return dealTime;
    }

    public void setDealTime(Date dealTime) {
        this.dealTime = dealTime;
    }

    public Integer getCommunityUserId() {
        return communityUserId;
    }

    public void setCommunityUserId(Integer communityUserId) {
        this.communityUserId = communityUserId;
    }

    public String getBlockName() {
        return blockName;
    }

    public void setBlockName(String blockName) {
        this.blockName = blockName;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getShowIntention() {
        if( StringUtil.isBlank( intention ) && intention.length() > 15 ){
            return intention.substring( 0,14 ) + "...";
        }
        return intention;
    }

    public void setShowIntention(String showIntention) {
        this.showIntention = showIntention;
    }

    public String getStatusStr() {
        if( status == 0 ){
            return "待处理";
        }
        return "已处理";
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUserMobile() {
        return userMobile;
    }

    public void setUserMobile(String userMobile) {
        this.userMobile = userMobile;
    }
}
